<template>
  <div>
    <div class="sideslip-bg" v-show="sideslipOk" @click="hideSideslip()"></div>
    <slot></slot>
  </div>
</template>

<script>
  export default {
    name: 'sideslip',
    props: ['sideslipOk'],
    data () {
      return {
      }
    },
    methods: {
      hideSideslip () {
        this.$emit('upup')
      }
    }
  }
</script>

<style scope lang="scss">
  .sideslip-bg{
    position: fixed;
    width: 100%;
    height: 100%;
    background: #000000;
    opacity: 0.2;
    top: 0;
    z-index: 996;
  }
</style>
